#!/usr/bin/env python
import time
import Optical_Transmitter as transmitter

transmitter.init()
transmitter.test()
transmitter.description()

time.sleep(1)

# switching on Laser and LED
transmitter.set_laser(1)
print('laser is: ' + str(transmitter.get_state()))
time.sleep(1)
transmitter.set_laser(0)
print('laser is: ' + str(transmitter.get_state()))

time.sleep(1)

for i in range (1,10):
  transmitter.set_laserpulse(i*i*25)
  time.sleep(0.5)
